package com.ushio.gougouwangguo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ushio.gougouwangguo.entity.mysql.UserMaterials;
import com.ushio.gougouwangguo.entity.vo.UserMaterialsVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 用户资源表 Mapper 接口
 * </p>
 *
 * @author 张文凯
 * @since 2025-09-23
 */
@Mapper
public interface UserMaterialsMapper extends BaseMapper<UserMaterials> {

    List<UserMaterialsVo> getUserMaterials(Long userId);

    List<UserMaterialsVo> getUserMaterialsByid(@Param("userId") Long userId, @Param("ids")List<Long> ids);

    void updataUserResources(UserMaterials userMaterials);

    UserMaterialsVo getRoom(Long userId);

    void updataUserResourcesLose(UserMaterials userMaterials);
}
